package hl.crazy_java.chapter_6;

/**
 * 
 * @author Liu Huan
 */

abstract class Book {
    public abstract void sweeper();
}

class Book1 extends Book {
    @Override
    public void sweeper() {
        System.out.println("左右滑着看书");;
    }
}

class Book2 extends Book {
    @Override
    public void sweeper() {
        System.out.println("上下滑着看书");
    }
}

public class BooKTest {
    public static void main(String[] args) {

        var b1 = new Book1();
        b1.sweeper();

        var b2 = new Book2();
        b2.sweeper();

    }
}
